Optimal. Leaf size=54 \[ \frac {1}{2} \left (2 a^2+b^2\right ) \sin ^{-1}(x)-\frac {3}{2} a b \sqrt {1-x^2}-\frac {1}{2} b \sqrt {1-x^2} (a+b x) \]
________________________________________________________________________________________
Rubi [A] time = 0.02, antiderivative size = 54, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 3, integrand size = 19, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.158, Rules used = {743, 641, 216} \begin {gather*} \frac {1}{2} \left (2 a^2+b^2\right ) \sin ^{-1}(x)-\frac {3}{2} a b \sqrt {1-x^2}-\frac {1}{2} b \sqrt {1-x^2} (a+b x) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 216
Rule 641
Rule 743
Rubi steps
\begin {align*} \int \frac {(a+b x)^2}{\sqrt {1-x^2}} \, dx &=-\frac {1}{2} b (a+b x) \sqrt {1-x^2}-\frac {1}{2} \int \frac {-2 a^2-b^2-3 a b x}{\sqrt {1-x^2}} \, dx\\ &=-\frac {3}{2} a b \sqrt {1-x^2}-\frac {1}{2} b (a+b x) \sqrt {1-x^2}-\frac {1}{2} \left (-2 a^2-b^2\right ) \int \frac {1}{\sqrt {1-x^2}} \, dx\\ &=-\frac {3}{2} a b \sqrt {1-x^2}-\frac {1}{2} b (a+b x) \sqrt {1-x^2}+\frac {1}{2} \left (2 a^2+b^2\right ) \sin ^{-1}(x)\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.04, size = 38, normalized size = 0.70 \begin {gather*} \frac {1}{2} \left (\left (2 a^2+b^2\right ) \sin ^{-1}(x)-b \sqrt {1-x^2} (4 a+b x)\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
IntegrateAlgebraic [A] time = 0.35, size = 55, normalized size = 1.02 \begin {gather*} \left (2 a^2+b^2\right ) \tan ^{-1}\left (\frac {x}{\sqrt {1-x^2}-1}\right )+\frac {1}{2} \sqrt {1-x^2} \left (b^2 (-x)-4 a b\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.41, size = 49, normalized size = 0.91 \begin {gather*} -{\left (2 \, a^{2} + b^{2}\right )} \arctan \left (\frac {\sqrt {-x^{2} + 1} - 1}{x}\right ) - \frac {1}{2} \, {\left (b^{2} x + 4 \, a b\right )} \sqrt {-x^{2} + 1} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.21, size = 35, normalized size = 0.65 \begin {gather*} \frac {1}{2} \, {\left (2 \, a^{2} + b^{2}\right )} \arcsin \relax (x) - \frac {1}{2} \, {\left (b^{2} x + 4 \, a b\right )} \sqrt {-x^{2} + 1} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.05, size = 42, normalized size = 0.78 \begin {gather*} a^{2} \arcsin \relax (x )-2 \sqrt {-x^{2}+1}\, a b +\left (-\frac {\sqrt {-x^{2}+1}\, x}{2}+\frac {\arcsin \relax (x )}{2}\right ) b^{2} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 2.94, size = 42, normalized size = 0.78 \begin {gather*} -\frac {1}{2} \, \sqrt {-x^{2} + 1} b^{2} x + a^{2} \arcsin \relax (x) + \frac {1}{2} \, b^{2} \arcsin \relax (x) - 2 \, \sqrt {-x^{2} + 1} a b \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.03, size = 35, normalized size = 0.65 \begin {gather*} \mathrm {asin}\relax (x)\,\left (a^2+\frac {b^2}{2}\right )-\left (\frac {x\,b^2}{2}+2\,a\,b\right )\,\sqrt {1-x^2} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 0.25, size = 42, normalized size = 0.78 \begin {gather*} a^{2} \operatorname {asin}{\relax (x )} - 2 a b \sqrt {1 - x^{2}} - \frac {b^{2} x \sqrt {1 - x^{2}}}{2} + \frac {b^{2} \operatorname {asin}{\relax (x )}}{2} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________